package calculator.ast;

import javapop.framework.parser.expr.OperandNode;

public class Const extends Expr implements OperandNode {
	private double value;
	
	public Const(double value) {
		this.value = value;
	}
	
	public double eval() {
		return value;
	}
	
	@Override
	public boolean isOperand() {
		return true;
	}
	
	@Override
	public String getDescription() {
		return Double.toString(value);
	}
}
